<div class="middle">
    <div class="itemsInfo">
        <div class="productBox1">
            <?php if(count($details['Media'])): ?>
            <div class="productBox2">
                <p>
                <?php foreach($details["Media"] as $p): ?>
                    <span>
                        <i></i>
                        <img width="278" alt="<?php echo $details['Post']['name'] ?>" src="<?php echo $html->url("/img/uploads/").$p['Media']['file_media'] ?>">
                    </span><br />
                <?php endforeach ?>
                </p>
                <p class="padder"></p>
            </div>
            <?php endif ?>
            <div class="productBox3" style="float: left;margin-left:20px;">
                <strong><?php e($details["Post"]["name"]) ?></strong>
                    <div id="variant_tag">
                        <p>
                        <?php 
                        // doctors
                        if($details['Post']['category_id']==1):?>
                            <?php if(count($details['Degree'])): ?>
                            <b class="soldBy">Degree: </b><?php foreach($details['Degree'] as $d) echo '<b>'.$d['name'].'</b>,&nbsp;' ?><br />
                            <?php endif ?>
                            <?php if(count($details['Spec'])): ?>
                            <b class="soldBy">Specialization: </b><?php foreach($details['Spec'] as $s) echo '<b>'.$s['name'].'</b>,&nbsp;' ?><br />
                            <?php endif ?>
                            <b class="soldBy">Chamber Address:</b><?php e($details['Post']['address']) ?><br />
                            <b class="soldBy">Contact Address:</b><?php e($details['Post']['contact_address']) ?><br />
                        <?php else: ?>
                            <b class="soldBy">Address:</b> <?php e($details['Post']['address']) ?><br />
                        <?php endif ?>
                        <?php if($details["Post"]["category_id"]==7): ?>
                            <b class="soldBy">Is it open 24 hrs:</b> <?php e($details['Post']['is_open']?"Yes":"No") ?><br />
                        <?php endif ?>
                            <b class="soldBy">Location:</b> <?php e($details['District']['name']);if(!empty($details['District']['Parent']))echo ", ".$details['District']['Parent']["District"]["name"] ?><br />
                            <b class="soldBy">Phone:</b> <?php e($details['Post']['phone']) ?><br />
                            <br /><br />
                            <p><?php e($details["Post"]["additional"]) ?></p>
                        </p>
                    </div>
                    
                </div>
            </div>
        <span  class='st_facebook_large' ></span><span  class='st_twitter_large' ></span><span  class='st_yahoo_large' ></span><span  class='st_gbuzz_large' ></span><span  class='st_delicious_large' ></span><span  class='st_email_large' ></span>
        <br /><br />
        
    </div>
</div>